<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <title>核销后台</title>
    <meta name="referrer" content="never">
    <link rel="stylesheet" href="/applet-js/3p/layui/css/layui.css" />
    <link rel="stylesheet" href="/applet-js/admin/global.css" />
    <script src="/applet-js/js/jquery-1.11.2.min.js"></script>
    <script src="/applet-js/3p/layui/layui.js"></script>
</head>
<body>

<div class="" style="text-align: center">
    <div style="font-size: 5rem">昆山汉字节</div>
    <div style="font-size: 5rem">核销后台</div>
</div>
<form class="layui-form" method="post"  style="width:90%;margin: 100px 0;text-align: center">
    <div class="layui-form-item" style="font-size: 2rem">
        <!--<label class="layui-form-label" style="text-align: center">账号</label>-->
        <div class="layui-input-block">
            <input type="text" style="height: 5rem;border:2px solid #8a8c8e;" name="account" lay-verify="required" autocomplete="off" placeholder="请输入账号" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item" style="font-size: 2rem">
        <!--<label class="layui-form-label" style="text-align: center">密码</label>-->
        <div class="layui-input-block">
            <input type="password" name="pwd" style="height: 5rem;border:2px solid #8a8c8e;" lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width:100%;text-align: center;">
            <button class="layui-btn" lay-submit=""  lay-filter="formLogin" style="width:400px;height: 100px;font-size: 4rem">登录</button>
        </label>
    </div>
</form>
<script>
    layui.use('form',function(){
        var form = layui.form;
        form.on('submit(formLogin)', function(data){
            $.ajax({
                url:'/bn/login',
                data:data.field,
                dataType:'json',
                type:'post',
                success:function(res){
                    if(res.status == 0){
                        window.location.href='/bn/admin';
                    }else{
                        layer.msg(res.info,{icon:2});
                    }
                }
            });
            return false;
        });

        $('#captcha').click(function(){
            $(this).attr('src','{#:captcha_src()#}?v='+Math.random());
        });

    });


</script>
<img alt="" style="display:none" id="displayImg" src="" />
<script type="text/javascript">
</script>
</body>
</html>